<!doctype html>
<html lang="en">
<head>
    <title>学生信息</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
          integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body class="container mt-3">
{foreach $result as $k=>$v}
<div class="card mb-3">
    <h5 class="card-header text-center">
        学生信息
    </h5>
    <div class="card-body">
        <dl class="row">
            <dt class="col-5">姓名</dt>
            <dd class="col-7">{$v['name']}</dd>

            <dt class="col-5">性别</dt>
            <dd class="col-7">{$v['sex']}</dd>

            <dt class="col-5">身份证号</dt>
            <dd class="col-7">{$v['idName']}</dd>

            <dt class="col-5">入学时间</dt>
            <dd class="col-7">{$v['year']}</dd>

            <dt class="col-5">学习时间</dt>
            <dd class="col-7">{$v['length']}</dd>

            <dt class="col-5">系别</dt>
            <dd class="col-7">{$v['department']}</dd>

            <dt class="col-5">专业</dt>
            <dd class="col-7">{$v['specialty']}</dd>

            <dt class="col-5">班级</dt>
            <dd class="col-7">{$v['class']}</dd>
        </dl>
    </div>
</div>
{/foreach}
</body>
</html>
